import IMApp from "../components/IMApp";
import React from 'react'
import App from './app'
import Login from "./login";

// ReactDOM.render(
//   <HashRouter>
//     <App />
//   </HashRouter>,
//   document.getElementById('root')
// );
export default function HomePage() {
  const initOptions = {
    appkey: "61e681b6306fe6e5cf3c3105b06310e0", // 请填写你的appkey
    account: "1328906", // 请填写你的account
    token: "771ef2066c1c85c1c1c083804b320526", // 请填写你的token
  };
  
  const getApp = ()=>{
    const accid = localStorage.getItem("account")
    if(accid){
      return (
        <IMApp></IMApp>
      )
    }else{
      return (
        <Login></Login>
      )
    }
  }
  return getApp()
}
